import _fetch from "./requst";
// 获取企业信息
function getBusiness(params) {
  return _fetch({
    url: "/enterprise/list",
    params,
  });
}

// 新增企业接口
function addBusiness(data) {
  return _fetch({
    url: "/enterprise/add",
    method: "post",
    data,
  });
}

// 企业编辑
function editBusiness(data) {
  return _fetch({
    url: "/enterprise/edit",
    method: "post",
    data,
  });
}

// 设置状态
function statusBusiness(data) {
  return _fetch({
    url: "/enterprise/status",
    method: "post",
    data,
  });
}

// 删除
function delBusiness(data) {
  return _fetch({
    url: "/enterprise/remove",
    method: "post",
    data,
  });
}

export { getBusiness, addBusiness, editBusiness, statusBusiness, delBusiness };
